<!DOCTYPE html>
<html>
	<head>
		<script>
			var secs = 1; 
			for(i=0;i<=secs;i++) {
			window.setTimeout("update(" + i + ")", i * 1000);
			}

			function update(num) {
			if(num == secs) {
			window.location="/";
			}
			else {
			printnr = secs-num;
			document.getElementById('sec').innerHTML = printnr;
			}
			}
		</script> 
	</head>
	<body>
		{%if isSuccessful%}
			<h1>Upload Successfully!</h1>
			{{product.name}}
		{%else%}
			<h1>Upload Failed!!!</h1>
		{%endif%}
		<h2>After <span id="sec" style="color:red"></span> seconds, page will skip to list......</h2>
		
	</body>
</html>
